package com.jeesite.modules.dataScreen.web;

import com.alibaba.fastjson2.JSONObject;
import com.jeesite.modules.dataScreen.service.BasicsFacilityService;
import com.jeesite.modules.dataScreen.web.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/basicsFacilities")
@Api(tags = "首页-基础设施")
public class HomeBasicsApi {

    @Resource
    private BasicsFacilityService basicsFacilityService;


    @GetMapping("/index")
    @ApiOperation("p1-基础设施-实时")
    public Result<JSONObject> index() {
        return Result.OK(basicsFacilityService.index());
    }

    @GetMapping("/otherKpi")
    @ApiOperation("p1-任务目标与核心KPI")
    public Result<JSONObject> otherKpi() {
        return Result.OK(basicsFacilityService.otherKpi());
    }

    @GetMapping("/otherKpiClick")
    @ApiOperation("p1-任务目标与核心KPI点击")
    public Result<JSONObject> otherKpiClick() {
        return Result.OK(basicsFacilityService.otherKpiClick());
    }

    @ApiOperation("p2-公路管理")
    @GetMapping("/roadManagement")
    public Result<JSONObject> roadManagement() {
        return Result.OK(basicsFacilityService.roadManagement());
    }

    @ApiOperation("p2-港航管理")
    @GetMapping("/harborShipP2")
    public Result<JSONObject> harborShipP2() {
        return Result.OK(basicsFacilityService.harborShipP2());
    }

    @ApiOperation("p2-民航管理")
    @GetMapping("/aviationP2")
    public Result<JSONObject> aviationP2() {
        return Result.OK(basicsFacilityService.aviationP2());
    }

    @ApiOperation("p3-民航管理-机场智建")
    @GetMapping("/aviationConstructP3")
    public Result<JSONObject> aviationConstructP3() {
        return Result.OK(basicsFacilityService.aviationConstructP3());
    }

    @ApiOperation("p3-港航管理-航运智管")
    @GetMapping("/shippingIntelligenceTube")
    public Result<JSONObject> shippingIntelligenceTube() {
        return Result.OK(basicsFacilityService.shippingIntelligenceTube());
    }

    @ApiOperation("p3-港航管理-港口智控")
    @GetMapping("/portIntelligentControl")
    public Result<JSONObject> portIntelligentControl() {
        return Result.OK(basicsFacilityService.portIntelligentControl());
    }

    @ApiOperation("p3-港航管理-船舶智治")
    @GetMapping("/shipWiseGovernance")
    public Result<JSONObject> shipWiseGovernance() {
        return Result.OK(basicsFacilityService.shipWiseGovernance());
    }

    @ApiOperation("p3-港航管理-港航智建")
    @GetMapping("/construct")
    public Result<JSONObject> constructP3() {
        return Result.OK(basicsFacilityService.constructP3());
    }

    @ApiOperation("p3-港航管理-港航智养")
    @GetMapping("/maintain")
    public Result<JSONObject> maintainP3() {
        return Result.OK(basicsFacilityService.maintainP3());
    }


    @ApiOperation("p3-公路管理-路长集治")
    @GetMapping("/highroad/lcjz")
    public Result<JSONObject> highroadLcjz() {
        return Result.OK(basicsFacilityService.highroadLcjz());
    }

    @ApiOperation("p3-公路管理-路长集治-实时")
    @GetMapping("/highroad/lcjzReal")
    public Result<JSONObject> highroadLcjzReal() {
        return Result.OK(basicsFacilityService.highroadLcjzReal());
    }

    @ApiOperation("p3-公路管理-高速畅行")
    @GetMapping("/highSpeedTravel")
    public Result<JSONObject> highSpeedTravel() {
        return Result.OK(basicsFacilityService.highSpeedTravel());
    }


}
